package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.ProdCategory;
import com.yami.shop.dao.ProdCategoryMapper;
import com.yami.shop.service.ProdCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProdCategoryServiceImpl extends ServiceImpl<ProdCategoryMapper, ProdCategory> implements ProdCategoryService {
    @Autowired
    private ProdCategoryMapper prodCategoryMapper;

    @Override
//    @Cacheable(cacheNames = "categoryList", key = "#prodId")
    public List<ProdCategory> listByProdId(Long prodId) {
        return prodCategoryMapper.listByProdId(prodId);
    }
}
